<?php
$thistitle="友情链接";
include("head.php");

	$result=mysql_query("select * from ".$prefix."link where l_index=1");
	while($arr=mysql_fetch_array($result)){
		$alllinks[] = '<A href="'.$arr['l_url'].'" target=_blank>'.$arr['l_name'].'</A><br> ';
	}

include("foot.php");
$smar=new MySmarty($cache,$cachetime,$moban);
$smarty=$smar->get_smarty();
//head
$smarty->assign("thistitle",$thistitle);
$smarty->assign("q",$q);
$smarty->assign("result2",$result2);
$smarty->assign("webname",$webname);
$smarty->assign("postfix",$postfix);
$smarty->assign("description",$description);
$smarty->assign("keywords",$keywords);
$smarty->assign("website",$website);
$smarty->assign("searchkeys",$searchkeys);
$smarty->assign("newshops",$newshops);
$smarty->assign("toubiao",$show_topnav);
$smarty->assign("moban",$moban);
$smarty->assign("thispid",$thispid);


//category
$smarty->assign("prefixurl",$prefixurl);
$smarty->assign("lcat",$lcat);
$smarty->assign("lpro",$lpro);
$smarty->assign("lpage",$lpage);
$smarty->assign("rewrite_postfix",$rewrite_postfix);
$smarty->assign("ljoin",$ljoin);
//foot
$smarty->assign("links",$links);
$smarty->assign("QQ",$QQ);
$smarty->assign("ICP",$ICP);
$smarty->assign("tongji",$tongji);
$smarty->assign("jiathis",$jiathis);
$smarty->assign("ads",$ads['ads']);
//slist
$smarty->assign("alllinks",$alllinks);


$smarty->display("link.html");
?>